package br.com.lpoint.job.wrapper;

import java.util.Date;
import java.util.Map;

import javax.ejb.Local;
import javax.ejb.Stateless;

import br.com.document.job.JobDocument;


@Stateless
@Local(value=JobWrapper.class)
public class JobWrapperImpl implements JobWrapper {

	@Override
	public int executeJob(JobDocument job, Map<String, Object> params) {
		System.out.println("JobWrapper "+new Date());
		params.put("Deu certo", "Deu certo!!!");
		job.execute(params);
		return 0;
	}

}
